package com.lakers.notice.springboot.util;

import java.util.List;

/**
 * 功能描述: SqlInUtils
 *
 * @author liqin(zxl)
 * @date 2024/5/4
 */
public class SqlInUtils {

    public static String in(List<Long> noticeIds){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < noticeIds.size(); i++) {
            sb.append(noticeIds.get(i));
            if (i == noticeIds.size() - 1){
                break;
            }
            sb.append(",");
        }
        return sb.toString();

    }
}
